package com.joysuch.wwyt.workflow.bean;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

@Data
public class WorkFlowTaskNameBean implements Serializable {

    @ApiModelProperty("任务节点ID")
    private String taskElementId;

    @ApiModelProperty("任务节点名称")
    private String taskName;

    @ApiModelProperty("上一个任务节点名称")
    private String preTaskName;

    @ApiModelProperty("下一个任务节点名称")
    private String nextTaskName;

    @ApiModelProperty("节点状态名称")
    private String taskStatus;

    @ApiModelProperty("节点状态名称(排他网关逆向节点状态)")
    private Map<String,String> taskStatusMap;

    @ApiModelProperty("节点完成状态")
    private Integer completeStatus;

    private String assignKey;

    private String assignValue;

    private String diaType;

    private String description;

    @ApiModelProperty("节点是否记录历史")
    private String recordHistory;

    @ApiModelProperty("节点是否风险复评")
    private String riskreeval;

    private Integer showOrder;

    /**
     * 业务场景,eg: 作业证申请过后需要根据作业级别走不同的审批流程
     * 此字段规定下个节点(互斥网关)分流时取的当前组件名称, param="一级"
     */
    @ApiModelProperty("下个节点(互斥网关)分流时取的当前组件key")
    private FlowKeyBean flowKey;

    @ApiModelProperty("会签或签标识, 1 会签; 2 或签; 0 默认(即只能选一个组件)")
    private Integer countersign = 0;

    @ApiModelProperty("会签/或签 组件list")
    private List<CountersignBean> countersignList;


}
